package service.impl;

import dao.DoctorFeeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.DoctorFee;
import service.DoctorFeeService;

import java.util.List;

@Service
public class DoctorFeeServiceImpl implements DoctorFeeService {
    @Autowired
    private DoctorFeeMapper doctorFeeMapper;
    public List<DoctorFee> findAll() {
        return doctorFeeMapper.findAll();
    }
    public DoctorFee findById(int feeId) {
        return doctorFeeMapper.findById(feeId);
    }
    public int addFee(DoctorFee fee) {
        return doctorFeeMapper.addFee(fee);
    }
    public int updateFee(DoctorFee fee) {
        return doctorFeeMapper.updateFee(fee);
    }
    public int deleteFee(int feeId) {
        return doctorFeeMapper.deleteFee(feeId);
    }
}
